/*
{
  "id": "1877280757693566976",
  "createdAt": "2025-01-09 17:06:25",
  "customerName": "",//客户姓名
  "companyAddress": "",//公司地址
  "companyScale": "",//公司规模
  "employeeNumber": 0,//在职人数
  "annualSales": 0.00,//年销售额
  "mainProducts": "",//主营产品
  "businessMode": "",//经营方式
  "contactInfo": "",//联系方式
  "wechatId": "",//微信号
  "dealerSource": "",//经销商来源
  "isCooperation": false,//是否合作
  "isSendSample": false,//是否邮寄样品
  "businessLicense": "",//营业执照
  "joinConferenceFlag": false,//是否会议
  "serviceUser": "",//服务专员
  "postProduct": "",//邮寄商品
  "registeredCapital": 0.00,//注册资金
  "operatingLife": "",//经营年限
  "legal": "",//法人
}
*/

class DistributorInfo {
  String? id;
  String? customerName;
  String? companyAddress;
  String? companyScale;
  int? employeeNumber;
  double? annualSales;
  String? mainProducts;
  String? businessMode;
  String? contactInfo;
  String? wechatId;
  String? dealerSource;
  bool? isCooperation;
  bool? isSendSample;
  String? businessLicense;
  bool? joinConferenceFlag;
  String? serviceUser;
  String? postProduct;
  double? registeredCapital;
  String? operatingLife;
  String? legal;

  DistributorInfo({
    this.id,
    this.customerName,
    this.companyAddress,
    this.companyScale,
    this.employeeNumber,
    this.annualSales,
    this.mainProducts,
    this.businessMode,
    this.contactInfo,
    this.wechatId,
    this.dealerSource,
    this.isCooperation,
    this.isSendSample,
    this.businessLicense,
    this.joinConferenceFlag,
    this.serviceUser,
    this.postProduct,
    this.registeredCapital,
    this.operatingLife,
    this.legal,
  });

  DistributorInfo.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    customerName = json['customerName'];
    companyAddress = json['companyAddress'];
    companyScale = json['companyScale'];
    employeeNumber = json['employeeNumber'];
    annualSales = json['annualSales'];
    mainProducts = json['mainProducts'];
    businessMode = json['businessMode'];
    contactInfo = json['contactInfo'];
    wechatId = json['wechatId'];
    dealerSource = json['dealerSource'];
    isCooperation = json['isCooperation'];
    isSendSample = json['isSendSample'];
    businessLicense = json['businessLicense'];
    joinConferenceFlag = json['joinConferenceFlag'];
    serviceUser = json['serviceUser'];
    postProduct = json['postProduct'];
    registeredCapital = json['registeredCapital'];
    operatingLife = json['operatingLife'];
    legal = json['legal'];
  }

  toJson() {
    return {
      'id': id,
      'customerName': customerName,
      'companyAddress': companyAddress,
      'companyScale': companyScale,
      'employeeNumber': employeeNumber,
      'annualSales': annualSales,
      'mainProducts': mainProducts,
      'businessMode': businessMode,
      'contactInfo': contactInfo,
      'wechatId': wechatId,
      'dealerSource': dealerSource,
      'isCooperation': isCooperation,
      'isSendSample': isSendSample,
      'businessLicense': businessLicense,
      'joinConferenceFlag': joinConferenceFlag,
      'serviceUser': serviceUser,
      'postProduct': postProduct,
      'registeredCapital': registeredCapital,
      'operatingLife': operatingLife,
      'legal': legal,
    };
  }
}
